package ch0300;

import java.util.GregorianCalendar;

public class Car extends Common{
	private Driver driver;
	public Car(int A,int B,int C,float length) {
		super(A, B, C,length);
	}
	

	public Driver getDriver() {
		return driver;
	}


	public void setDriver(Driver driver) {
		this.driver = driver;
	}
    public  void go() {
    	driver.getLicence();
    	System.out.println("开车了！");
    }

	@Override
	public float  computeSpeed() {
		// TODO 自动生成的方法存根
		return A*B/C;
	}

	

}
